import axios from '../../utils/request'
// 创建部门
export const departmentCreate = (data) =>
{
    return axios({
        method: 'post',
        url: '/department/create',
        data
    })
}
// 编辑部门
export const departmentUpdate = (data) =>
{
    return axios({
        method: 'post',
        url: '/department/update',
        data
    })
}
// 部门列表
export const departmentRead = (data) =>
{
    return axios({
        method: 'post',
        url: '/department/read',
        data
    })
}
// 获取所有部门
export const departmentReadAll = (data) =>
{
    return axios({
        method: 'post',
        url: '/department/readAll',
        data
    })
}
// 删除部门
export const departmentDelete = (data) =>
{
    return axios({
        method: 'post',
        url: '/department/delete',
        data
    })
}
// 获取部门名
// 删除部门
export const findAllDepartmentList = (data) =>
{
    return axios({
        method: 'post',
        url: '/department/findAllDepartmentList',
        data
    })
}
// 获取所有的员工姓名
export const findDepartmentAndID = (data) =>
{
    return axios({
        method: 'post',
        url: '/department/findDepartmentAndID',
        data
    })
}